<?php
my_component_load('testing' , false);
my_component_load('paging' , false);
my_component_load('rpt_disciplinary', false);
$task = isset($_GET['task']) ? $_GET['task'] : ""; 
$periode_id = isset( $_GET['periode_id'] ) ? $_GET['periode_id']:  0; 

$modulname = "Reporting _BN_ Disciplinary Report";

if($task == "detail"){

}elseif($task == "excel"){
	header("Content-Type: application/xls");
	header("Content-Disposition: attachment;filename=Disciplinary_Report.xls");
	echo excel_report($periode_id);
	exit;	
}else{
	$pagename = $modulname;
	load_facebox_script();	
	$view = list_disciplinary($periode_id);
}	
generate_my_web($view, $pagename );

?>